// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>MyCompany.MyProject</Solution>
// <Project>MyCompany.MyProject.Application</Project>
// <FileName>ProductInputDto.cs</FileName>
// <CreateTime>2017-04-18 17:35</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-04-18 17:35" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Vecen.BangChuang.BangChuang.Areas.DomainDtos;
using Vecen.BangChuang.BangChuang.Areas.Dtos;
using Vecen.BangChuang.BangChuang.Common.Dtos;

namespace Vecen.BangChuang.BangChuang.Products.Dto
{

    /// <summary>
    /// 商品新增结构
    /// </summary>
    [AutoMapTo(typeof(Product))]
    public class ProductInputDto : EntityDto<int?>, IAttachmentInputDto, ICityInputDto
    {

        /// <summary>
        /// 商品类别
        /// </summary>
        public ProductType ProductType { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [MaxLength(64)]
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 分类ID
        /// </summary>
        [Range(1, int.MaxValue)]
        public int? CategoryId { get; set; }

        /// <summary>
        /// 描述
        /// <remarks>
        /// 不能超过512个字符
        /// </remarks>
        /// </summary>
        [MaxLength(512)]
        public string Description { get; set; }


        /// <summary>
        /// 图文详情
        /// </summary>
        [MaxLength(int.MaxValue)]
        public string GraphicContent { get; set; }
        
        /// <summary>
        /// 成本价
        /// </summary>
        public decimal CostPrice { get; set; }

        /// <summary>
        /// 出厂价
        /// </summary>
        public decimal ExFactoryPrice { get; set; }

        /// <summary>
        /// 一级代理价
        /// </summary>
        public decimal AgentPrice { get; set; }
        
      
        /// <summary>
        /// 本次请求关联的附件ID
        /// </summary>
        public List<int> AttachmentIds { get; set; }

        /// <summary>
        /// 本次请求需要删除的附件ID
        /// </summary>
        public List<int> DelAttachmentIds { get; set; }

        /// <summary>
        /// 省份
        /// </summary>
        /// <returns></returns>
        public long? ProvinceId { get; set; }

        /// <summary>
        /// 城市
        /// </summary>
        /// <returns></returns>
        public long? CityId { get; set; }

        /// <summary>
        /// 县/区
        /// </summary>
        /// <returns></returns>
        public long? DistrictId { get; set; }

        /// <summary>
        /// 学校信息
        /// </summary>
        public string UniversityName { get; set; }


        /// <summary>
        /// 学院信息
        /// </summary>
        public string CollegeName { get; set; }
    }
}